FROM fantito/jdk11-maven-git:latest as bd
WORKDIR /code
COPY ./ /code
RUN mvn package -Dmaven.test.skip=true

FROM  fantito/jdk11-maven-git:latest
COPY --from=bd /code/target/*.jar /app.jar
CMD java -jar /app.jar
